﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace UniversityCourses.Models
{
    //using Repository design pattern for testability 
    public interface IUniversityCoursesRepository
    {
        IEnumerable<Course> GetAllCourses();
        IEnumerable<int> GetCoursesByStudentEmail(string email);
        Course GetCoursesById(int id);
        void UpdateCourse(Course course);
        void DeleteCourse(int id);
        void CreateCourse(Course course);
        void Register(int id, string studentEmail);

        bool StudentExists(string email);
        void CreateStudent(string email, string provider, string providerUserId);
        Student GetStudentByEmail(string email);
    }
}